package com.vmj.instructions.conversions;

import com.vmj.instructions.base.NoOperandsInstruction;
import com.vmj.rtda.Frame;

/**
 * Created by yangshoujun on 2017/9/17 上午10:08.
 */
public class I2f extends NoOperandsInstruction {
    @Override
    public void execute(Frame frame) {
        int val = frame.getOperandStack().popInt();
        float f = Float.intBitsToFloat(val);
        frame.getOperandStack().pushFloat(f);
    }
}
